package Thread;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: homechen
 * Date: 2024-03-14
 * Time: 15:22
 */
public class ThreadDeme {
    public static void main(String[] args) {
        int count = 0;
        synchronized (ThreadDeme.class) {
            for (int i = 0; i < 100; i++) {
                count++;
            }
        }
        System.out.println(count);
    }
}
